

def front_user_middlewares(get_response):

    def middlewares_ss(request):
        print("request到view")
        # 之前的代码是request --> view
        response = get_response(request)
        # 之后的代码是response -->浏览器执行
        print("response -->浏览器执行")
        return response
    return middlewares_ss
